package cn.wolfcode.service;


import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OrderInfo;

import java.util.Map;

/**
 * Created by wolfcode-lanxw
 */
public interface IOrderInfoService {

    OrderInfo getOrderInfo(String orderNo);

    void updateStatus(String orderNo);
    //查询该用户的该订单
    OrderInfo find(String token, String orderNo);
    //异步回调：在这里执行订单成功之后的业务逻辑
    String notify_url(Map<String, String> params);
    //申请退款
    Result<Boolean> refundOrder(String orderNo);
    //在线支付
    Result<String> onlinePay(OrderInfo orderInfo);
    //同步回调中的
    Result<Boolean> rshcheck(Map<String, String> params);
    //支付类型：积分支付
    void integralPay(OrderInfo orderInfo);
    //积分退款
    Result<Boolean> intergralRefundOrder(OrderInfo orderInfo);
}
